//
//  ICMRepairOrderModel.m
//  ICrEAM
//
//  Created by kuroro on 16/11/23.
//  Copyright © 2016年 mac. All rights reserved.
//

#import "ICMRepairOrderModel.h"

@implementation ICMRepairOrderModel

- (void)setIN_MILEAGE:(NSString *)IN_MILEAGE {
    _IN_MILEAGE = IN_MILEAGE;
    double mileage = [_IN_MILEAGE doubleValue];
    _IN_MILEAGE = [NSString stringWithFormat:@"%.2lf",mileage];
}

- (void)setLABOUR_AMOUNT:(NSString *)LABOUR_AMOUNT {
    _LABOUR_AMOUNT = LABOUR_AMOUNT;
    double amount = [_LABOUR_AMOUNT doubleValue];
    _LABOUR_AMOUNT = [NSString stringWithFormat:@"%.2lf",amount];
}

- (void)setREPAIR_PART_AMOUNT:(NSString *)REPAIR_PART_AMOUNT {
    _REPAIR_PART_AMOUNT = REPAIR_PART_AMOUNT;
    double amount = [_REPAIR_PART_AMOUNT doubleValue];
    _REPAIR_PART_AMOUNT = [NSString stringWithFormat:@"%.2lf",amount];
}

@end


@implementation ICMRepairOrderArrayModel

- (void)createRepairOrderArrayModel{
    NSMutableArray *array = [NSMutableArray array];
    for (NSDictionary *dic in self.TT_REPAIR_ORDER) {
        ICMRepairOrderModel *model = [ICMRepairOrderModel yy_modelWithDictionary:dic];
        [array addObject:model];
       
    }
    self.TT_REPAIR_ORDER = array;
}

@end
